package com.example.himalaya.utils;

/**
 * 常量工具类
 */
public class Constants {
    //获取推荐列表的专辑数量 取值区间为[1,30]
    public static final int COUNT_RECOMMEND = 30;


    //获取曲目数，每页多少条，默认20，最多不超过200
    public static final int COUNT_TRACK = 50;

    //搜索专辑数量
    public static final int COUNT_ALBUM = 50;

    //热词数量
    public static final int COUNT_HOT_WORD = 20;

    //数据库常量
    public static final String DB_NAME = "ximalaya.db";
    public static final int DB_VERSION_CODE = 1;
    //订阅的表名
    public static final String SUB_TB_NAME = "tb_subscription";
    public static final String SUB_ID = "_id";
    public static final String SUB_COVER_URL = "coverUrl";
    public static final String SUB_TITLE = "title";
    public static final String SUB_DESCRIPTION = "description";
    public static final String SUB_TRACKS_COUNT = "tracksCount";
    public static final String SUB_PLAY_COUNT = "playCount";
    public static final String SUB_AUTHOR_NAME = "authorName";
    public static final String SUB_ALBUM_ID = "albumId";
    //订阅最多个数
    public static final int MAX_SUB_COUNT = 100;
    //历史记录的表名
    public static final String HISTORY_TB_NAME = "tb_history";
    public static final String HISTORY_ID = "_id";
    public static final String HISTORY_TRACK_ID = "historyTrackId";
    public static final String HISTORY_TITLE = "historyTitle";
    public static final String HISTORY_PLAY_COUNT = "historyPlayCount";
    public static final String HISTORY_DURATION = "historyDuration";
    public static final String HISTORY_UPDATE_TIME = "historyUpdateTime";
    public static final String HISTORY_COVER = "historyCover";
    public static final String HISTORY_AUTHOR = "history_author";
    //最大的历史记录数
    public static final int MAX_HISTORY_COUNT = 100;


    public static final String SP_NAME_USER = "user";
    public static final String SP_KEY_PHONE = "phone";
    public static final String SP_KEY_PASSWORD = "password";
    public static final String SP_KEY_NAME = "name";

}
